/*   Valhalla MailChecker -- Simple IMAP Mail Checker
*    Copyright (C) 2010-2011  Guillaume Florimond (gflorimond at gmail dot com)
*
*    This program is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 of the License, or
*    any later version.
*
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

package fr.valhalla.mailcheck;

/**
 *
 * @author guillaume
 */
public class Main {

    public static boolean param_GUI = true;

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        // Do we have some arguments on launch ?
        if(args.length > 0) {
            for(int i = 0 ; i < args.length ; i++) {
                if(args[i].equalsIgnoreCase("--nogui") || args[i].equalsIgnoreCase("-s"))
                    param_GUI = false;

            }
        } else {
            ;
        }

        Kernel core = new Kernel();

        // Start GUI or console mode ?
        if(param_GUI)
            core.startWithGUI();
        else
            core.startWithoutGUI();

    }

    

}
